const Logic = require('../logic');
module.exports = class extends Logic
{
    postAction()
    {
        let rules = {
            Name: {type: "string", min: 2, max: 20},
            UserName: {type: "string", min: 3},
            Password: {type: "string", min: 3},
            Tel: {type: "string", min: 5, max: 11},
        };
        let data = think.stringToJson(this.post('data'));
        let vres = think.validate(data, rules);
        if (vres !== true)
        {
            return this.error(52050, vres[0].message);
        }
    }

    getAction()
    {
        return this.checkGetGuid();
    }


    deleteAction()
    {
        return this.checkGetGuid();
    }
}